package com.zlm.controller;

import com.zlm.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: 郑
 */
@Controller
public class RedisController {
    @Autowired
    RedisService redisService;

    @ResponseBody
    @RequestMapping("/hello")
    public String hello(){

        redisService.hello();
        return "ok";

    }

}
